package com.awen.sqlSession;

import java.util.List;

public interface SqlSession {
    //查询所有
    public <E> List<E>  selectList(String statementid,Object... params);
    //根据条件查询单个
    public <T> T selectOne(String statementid,Object... params);
    //为dao接口生成代理实现类
    public <T> T getMapper(Class<?> mapperClass);
    //修改
    public Integer updateOne(String statementid,Object... params) throws Exception;
//    //删除
//    public Integer deleteOne(String statementid,Object... params) throws Exception;
//    //添加
//    public Integer insertOne(String statementid,Object... params) throws Exception;
}
